/* strncmp 函数使用示例 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
	printf("%d\n", strncmp("ABC", "ABC", 3));
	printf("%d\n", strncmp("ABC", "ABCD", 3);
	printf("%d\n", strncmp("a", "ABCD". 4));
	exit(0);
}
